package com.youfang.sixthmedia.message;

import java.util.List;

import com.youfang.sixthmedia.common.YoufangContext;
import com.youfang.sixthmedia.net.Pair;
import com.youfang.sixthmedia.net.Request;

public class GetNearByBuddyRequest extends Request {

	private String lat;
	private String lon;
	private int accurancy;

	private int page;
	private int pagesize = YoufangContext.LIST_PAGE_SIZE;

	// public/index.php?controller=online&action=GetNearBuddy&lat=%f&lon=%f&accurancy=%d&page=%d&pagesize=%d",
	// latitude, longitude, range, page, pageSize];
	@Override
	public List<Pair> getParams() {
		return Pair.p("controller", "online").p("action", "GetNearBuddy")
				.p("lat", lat).p("lon", lon).p("accurancy", accurancy)
				.p("page", page).p("pagesize", pagesize).get();
	}

	@Override
	public void genMetaData() {

	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLon() {
		return lon;
	}

	public void setLon(String lon) {
		this.lon = lon;
	}

	public int getAccurancy() {
		return accurancy;
	}

	public void setAccurancy(int accurancy) {
		this.accurancy = accurancy;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPagesize() {
		return pagesize;
	}

	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}


}
